Added apis to GtkCellArea for GtkIconView purposes.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 12 Dec 2010 15:18:00 +0000 (00:18 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sun, 12 Dec 2010 15:29:21 +0000 (00:29 +0900)
commit0431dd67f82def7af57119b27bcc4dea0b7a2167
tree94dceaea7c9f8b34b5674aacc98dd0e663ba838c
parentff39c76bfd9ea882c80c60313b594cf73035fa6e
Added apis to GtkCellArea for GtkIconView purposes.

Added a few apis,

  - GtkCellAreaContext get_preferred_height_for_width &
    width for height apis and vfuncs, this lets the icon view
    request the collective (and aligned) height for width for
    a said row.

  - gtk_cell_area_copy_context() this creates a duplicate of
    an already created and requested context, this way the icon
    view uses a global context to request the widths of all rows
    and then makes a copy with all the stored alignments and
    uses a separate copy to calculate the height and alignments
    of each row separately.
gtk/gtkcellarea.c
gtk/gtkcellarea.h
gtk/gtkcellareabox.c
gtk/gtkcellareaboxcontext.c
gtk/gtkcellareaboxcontext.h
gtk/gtkcellareacontext.c
gtk/gtkcellareacontext.h